home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0567.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.6 KB  |  42 lines

  1.  
  2. >I'd also like to express the opinion that we shouldn't make the HTML so
  3. >terribly specific.  Every new situation shouldn't require another addition
  4. >to HTML.  If that were the case, we'd never be finished.
  5.  
  6. Well, suffice it to say that HTML doesn't give much semantic
  7. information. It would be nice to express relationships between
  8. pieces of information through the document structure, but in
  9. HTML we mostly use links.
  10.  
  11. >>[...] The same is true for newlines: it's
  12. >>illegal to treat
  13. >><foo>
  14. >>content
  15. >></foo>
  16. >>different from <foo>content</foo> because the difference is
  17. >>not reported by the parser (unless we do some shortref magic
  18. >>to force the parser to report the difference.)
  19. >
  20. >I don't think we should do any shortref magic.  The simplest thing
  21. >(the way it works now) is that the two examples above are identical.
  22. >I say this is fine.
  23.  
  24. But it's a royal pain to implement! Doing full SGML newline processing
  25. by the standard is quite involved (see the article by Eric Naggum
  26. in comp.text.sgml about SGML and Records that I referenced in
  27. an earlier message). For example, you can't just get rid of all
  28. newlines immediately before or after tags, like it says in the
  29. web: Only those right after a start tag (of a non-empty element),
  30. right before an end tag,
  31. or the ones on a line containing only comments and processing instructions.
  32. Newlines around <P> tags, for example, _are_ reported.
  33.  
  34. If we don't stick the SHORTREF magic in the DTD to force the
  35. parser to report all newlines, we'll end up with countless hacks
  36. at newline processing, none of which matches the standard, and
  37. it'll be luck if any of them matches each other.
  38.  
  39. Dan
  40.  
  41.  
  42.